package com.example.mq.property;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component(value = "properties")
@ConfigurationProperties(prefix = "mq")
public class MqProperties {

    private String group;
    private String rocketMqUrl;
    private String topic;

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    public String getRocketMqUrl() {
        return rocketMqUrl;
    }

    public void setRocketMqUrl(String rocketMqUrl) {
        this.rocketMqUrl = rocketMqUrl;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }
}
